/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.server.common.model;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2021-09-07
 * @version 1.0
 * @since 1.0
 */
public class MfSettingCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static MfSettingCriteria create() {
		return new MfSettingCriteria();
	}
	
	public static MfSettingCriteria create(Column column) {
		MfSettingCriteria that = new MfSettingCriteria();
		that.add(column);
        return that;
    }

    public static MfSettingCriteria create(String name, Object value) {
        return (MfSettingCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("mf_setting", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public MfSettingCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public MfSettingCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfSettingCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public MfSettingCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public MfSettingCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public MfSettingCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public MfSettingCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public MfSettingCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public MfSettingCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public MfSettingCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public MfSettingCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public MfSettingCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public MfSettingCriteria andIdEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdNotEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdGreaterThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdLessThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfSettingCriteria andIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfSettingCriteria andIdIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfSettingCriteria andIdNotIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Integer", "Float");
          return this;
      }
	public MfSettingCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public MfSettingCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public MfSettingCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public MfSettingCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public MfSettingCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "Float");
    	   return this;
      }

      public MfSettingCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "Float");
          return this;
      }
      public MfSettingCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public MfSettingCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public MfSettingCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public MfSettingCriteria andValueIsNull() {
		isnull("value");
		return this;
	}
	
	public MfSettingCriteria andValueIsNotNull() {
		notNull("value");
		return this;
	}
	
	public MfSettingCriteria andValueIsEmpty() {
		empty("value");
		return this;
	}

	public MfSettingCriteria andValueIsNotEmpty() {
		notEmpty("value");
		return this;
	}
        public MfSettingCriteria andValueLike(java.lang.String value) {
    	   addCriterion("value", value, ConditionMode.FUZZY, "value", "java.lang.String", "String");
    	   return this;
      }

      public MfSettingCriteria andValueNotLike(java.lang.String value) {
          addCriterion("value", value, ConditionMode.NOT_FUZZY, "value", "java.lang.String", "String");
          return this;
      }
      public MfSettingCriteria andValueEqualTo(java.lang.String value) {
          addCriterion("value", value, ConditionMode.EQUAL, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueNotEqualTo(java.lang.String value) {
          addCriterion("value", value, ConditionMode.NOT_EQUAL, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueGreaterThan(java.lang.String value) {
          addCriterion("value", value, ConditionMode.GREATER_THEN, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("value", value, ConditionMode.GREATER_EQUAL, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueLessThan(java.lang.String value) {
          addCriterion("value", value, ConditionMode.LESS_THEN, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueLessThanOrEqualTo(java.lang.String value) {
          addCriterion("value", value, ConditionMode.LESS_EQUAL, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("value", value1, value2, ConditionMode.BETWEEN, "value", "java.lang.String", "String");
    	  return this;
      }

      public MfSettingCriteria andValueNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("value", value1, value2, ConditionMode.NOT_BETWEEN, "value", "java.lang.String", "String");
          return this;
      }
        
      public MfSettingCriteria andValueIn(List<java.lang.String> values) {
          addCriterion("value", values, ConditionMode.IN, "value", "java.lang.String", "String");
          return this;
      }

      public MfSettingCriteria andValueNotIn(List<java.lang.String> values) {
          addCriterion("value", values, ConditionMode.NOT_IN, "value", "java.lang.String", "String");
          return this;
      }
}